﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DormMS.Model.ViewModels
{
    public class CacheUserInfo : UserInfo
    {
        public List<UserRole> UserRoles { get; set; }

        public bool IsAdmin { get; set; }

        public bool IsAdd { get; set; }
        public bool IsEdit { get; set; }
        public bool IsQuery { get; set; }
        public bool IsDel { get; set; }

        public string AppId { get; set; }

        public string AppSecret { get; set; }

        public string GroupName { get; set; }

        public string DepartmentName { get; set; }
    }

    public class UserRole
    {
        public string MenuRole { get; set; }

        public List<string> OperateRoles { get; set; }
    }
}
